<%-- 
    Document   : modifyOrder
    Created on : May 16, 2012, 4:31:53 PM
    Author     : ciummo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<script language="javascript" type="text/javascript" src="/DGestWebServer/SCRIPT/jquery.min.js"></script>
<script type="text/javascript" src="/DGestWebServer/SCRIPT/jquery.ui.core.js"></script>
<script type="text/javascript" src="/DGestWebServer/SCRIPT/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="/DGestWebServer/SCRIPT/ui.datepicker-it.js"></script>

<link href="/DGestWebServer/SCRIPT/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="/DGestWebServer/SCRIPT/ui.datepicker.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
    $(document).ready(function(){
        $('#datepickerId').datepicker({ dateFormat: 'dd/mm/yy' });
    });
</script>  


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" type="text/css" href="/DGestWebServer/css/dgest.css"/>
    </head>
    <body>
        
        <div class="error">
            <html:errors />
        </div>
        
        <%@ include file="../adminDialogBar.jspf" %> 
        
        
        <h1>Modifica Ordine</h1><br>
        
        <html:form action="Order?method=submitModifyOrder" method="POST" enctype="multipart/form-data">
             
            <table class="center"><tbody>

                <div id="OrderInformation">
                    
                    <tr>
                        <th>Numero Ordine</th>
                        <td><html:text name="OrderActionForm" property="idOrdine" maxlength="10" readonly="true"/></td>
                    </tr>

                    <tr>
                        <th>Data Evasione</th>
                        
                        <td><div id="datepicker">
                            
                                <html:text name="OrderActionForm" property="dataEvasione" styleId="datepickerId" maxlength="10" /></div></td>
                    </tr>                               
                    
                    <tr>
                        <th>Tipo di Pagamento</th>
                    <td>
                    <html:select property="tipoPagamento" >
                    <html:option value="0">Tipo Pagamento</html:option>
                    <html:optionsCollection name="OrderActionForm" property="paymentList" label="title" value="title"/>
                    </html:select>
                    </td>
                    </tr>
                    
                    <tr>
                        <th>Porto Franco</th>
                        <td> <html:checkbox name="OrderActionForm" property="resoFranco"/></td>
                        
                    </tr>
                    
                    <tr>
                        <th>Note</th>
                        <td><html:text name="OrderActionForm" property="note"/></td>
                    </tr>
            
                    </div>
                    
                    <html:hidden name="OrderActionForm"  property="creation" value="0"></html:hidden>
                    
                    
                    <tr>
                        <td>
                            <html:submit>
                                Submit
                            </html:submit>


                        </td>
                        <td>
                            <html:link action="/Order.do?method=orderDetails" paramId="id" paramName="OrderActionForm" paramProperty="idOrdine"><input type="button" name="cancel" value="Cancel" /></html:link>

                        </td>
                    </tr>
                    
                    
            </table></tbody>
            
        </html:form>
            
            <html:link action="/Order.do?method=orderDetails" paramId="id" paramName="OrderActionForm" paramProperty="idOrdine"><img src="/DGestWebServer/images/left.png" alt="Back" height="75px" width="75px"/></html:link>

            
    </body>
</html>
